<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
<title>数据管理</title>
<meta name="decorator" content="default" />
<script type="text/javascript">
	function autoRowSpan(tb, row, col) {
		var lastValue = "", value = "", pos = 1;
		for (var i = row; i < tb.rows.length; i++) {
			value = tb.rows[i].cells[col].innerText;
			if (lastValue == value) {
				tb.rows[i].deleteCell(col);
				tb.rows[i - pos].cells[col].rowSpan = tb.rows[i - pos].cells[col].rowSpan + 1;
				pos++;
			} else {
				lastValue = value;
				pos = 1;
			}
		}
	}
	$(document).ready(function() {
		$(document).ready(function() {
			$("#searchForm").validate({
				submitHandler : function(form) {
					loading('正在删除，请稍等...');
					form.submit();
				}
			});
		});
	});
</script>
</head>
<body>
	<ul class="nav nav-tabs">
		<li class="active"><a href="${ctx}/cms/taskOperation/clear">清除历史数据</a></li>
	</ul>
	<form:form id="searchForm" action="${ctx}/cms/taskOperation/clear" method="post"
		class="breadcrumb form-search">
		<div>
			<label>截至日期：</label><input id="endDate" name="endDate" type="text"
				readonly="readonly" maxlength="20" class="input-small Wdate"
				value="${paramMap.endDate}"
				onclick="WdatePicker({dateFmt:'yyyy-MM-dd',isShowClear:false});" />&nbsp;&nbsp;
			<input id="btnSubmit" class="btn btn-primary" type="submit"
				onclick="return confirm('要删除该该期间数据吗？')" value="删除" />
		</div>
	</form:form>
	<sys:message content="${message}" />

</body>
</html>